﻿//---------------------------------------------------------------------------------
// Microsoft (R)  Windows Azure Platform AppFabric SDK
// Software Development Kit
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
// EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
//---------------------------------------------------------------------------------

using System;
using System.Diagnostics;
using System.ServiceModel;

namespace Microsoft.ServiceBus.Samples
{
	[ServiceBehavior(Name = "TraceService", Namespace = "http://samples.microsoft.com/ServiceModel/Relay/CloudTrace")]
	internal class TraceService : ITraceContract
	{
		public void Write(string message)
		{
			Console.Write(message);
			Trace.Write(message);
		}

		public void WriteLine(string message)
		{
			Console.WriteLine(message);
			Trace.WriteLine(message);
		}
	}
}